package com.umeox.watch.moto.launcher.bean;

import java.util.Objects;

/**
 * @author zl
 * @date 2018/8/16
 */

public class ChatMsgBean {

    private String id;

    private String name;

    private String avatar;

    private String msg;

    private long timeStamp;

    private int count;

    public ChatMsgBean() {
    }

    public ChatMsgBean(String name, String avatar, String msg, long timeStamp, int count) {
        this.name = name;
        this.avatar = avatar;
        this.msg = msg;
        this.timeStamp = timeStamp;
        this.count = count;
    }

    public ChatMsgBean(String id, String name, String avatar, String msg, long timeStamp, int count) {
        this.id = id;
        this.name = name;
        this.avatar = avatar;
        this.msg = msg;
        this.timeStamp = timeStamp;
        this.count = count;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ChatMsgBean)) return false;

        ChatMsgBean that = (ChatMsgBean) o;

        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }


    @Override
    public String toString() {
        return "ChatMsgBean{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", msg='" + msg + '\'' +
                ", timeStamp=" + timeStamp +
                ", count=" + count +
                '}';
    }
}
